package com.dq.Week2.day09.homework2;

public class Book {
    private String name;
    private int id=0;
    private String address;

    private String Author;

    public Book(){
        this.id++;
    }
    public Book(String name, String address, String author) {
        this.name = name;
        this.address = address;
        Author = author;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getAuthor() {
        return Author;
    }

    public void setAuthor(String author) {
        Author = author;
    }
}
